Component({
  properties: {
    knowledge: Object,
    currencyname: String,
    // 是否显示审核状态
    showStatus: Boolean,
    // 是否显示阅读状态，我购买的知识使用
    showRead: Boolean,
    // 知识订单数据，包涵阅读信息，配合showRead使用
    knowledgeOrder: Object,
  },
  methods: {
    toDetail(e: WechatMiniprogram.BaseEvent) {
      const id = e.currentTarget.dataset.id as number
      wx.navigateTo({
        url: `/index/knowledge/detail/detail?id=${id}`,
      })
    },
  },
})
